<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'memberCenter.jsp' starting page</title>
    <base href="<%=basePath%>">
	<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.css"> 
	<link rel="stylesheet" href="assets/css/member/membercenter.css">
	<script type="text/javascript" src="assets/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="assets/js/tiezi/fenye.js"></script>
	<script type="text/javascript" src="assets/js/tiezi/check-addtiezi.js"></script>
	<link rel="stylesheet" href="assets/plugins/kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="assets/plugins/kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="assets/plugins/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="assets/plugins/kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="assets/plugins/kindeditor/plugins/code/prettify.js"></script>
	<script>
	
	KindEditor.ready(function(K) {

			var editor1 = K.create('textarea[name="toppic"]', {
				cssPath : 'assets/plugins/kindeditor/plugins/code/prettify.css',
				uploadJson : 'assets/plugins/kindeditor/jsp/upload_json.jsp',
				fileManagerJson : 'assets/plugins/kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
	<style type="text/css">
		 textarea {
            		width:800px;
            		height:300px;
            		visibility:hidden
            	}
	</style>
  </head>
  
  <body>
  	<div id="mainbox" class="container"> 
	    <div id="header">
	    	<div id="toplogo" style="background:url('assets/images/logo/back_top.jpg');">
	    			<div class="topsign">Java Share</div>
	    	</div>
	    	<div id="menu">
	    		<div class="navbar">
				  <div class="navbar-inner">
				    <div class="container">
				      <ul class="nav">
					      <li><a href="member_memberCenter">用户中心</a></li>
						  <li><a href="member_memberCenter?module=article">我的文章</a></li>
						  <li><a href="member_memberCenter?module=tiezi">帖子中心</a></li>
						  <li><a href="member_memberCenter?module=myinfo">我的信息</a></li>
						   	<li><a href="member_logoff" class="pull-right">注销</a></li>
					      	
						</ul>
				    </div>
				  </div>
				</div>
	    	</div>
	    </div>
	    <div id="content" >
	    	<div id="leftColumn">
		
				<form action="tieziAction_addTiezi.action" onsubmit="return checkform(this)">
		
					<div class="postform" align="center">
						<h4>
							发表新主题
						</h4>
						<h5>
							<label>
								标题
							</label>
							<input type="text" name="tags" value="" tabindex="1">
						</h5>
						<p>
							<label>
								内容
							</label>
							<textarea rows="7" cols="80" class="autosave" name="toppic"
								id="message"  tabindex="2"></textarea>
						</p>
						<p class="btns">
							<button type="submit" tabindex="2">
								发表帖子
							</button>
							&nbsp;
							<button type="reset">
								清空内容
							</button>
						<div id="fastlogin" style="margin-left: 37px; margin-top: 5px"></div>
					</div>
	
				</form>
			</div>
			<div id="rightColumn">
			
			</div>
		</div>
	</div>	
	</body>
	</html>
			
